<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.hz.control.ActTypeControl"%>
<%@page import="com.hz.model.ActType"%>
<%@page import="com.hz.model.ParamDepartment"%>
<%@page import="com.hz.control.ParamDepartmentManager"%>
<%@page import="com.hz.util.ParamUtil"%>
<%@page import="com.hz.model.User"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <link href="../../../resources/register/css/formitem.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../../../css/common.css"/>
	<script type="text/javascript" src="../../../resources/register/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="../../../resources/register/jquery.form-1.0.1.js"></script>
	<script type="text/javascript" src="../../../resources/register/jquery.form.valid-1.0.1.js"></script>
<script type="text/javascript" src="../../common/js/WebCalendar.js"></script>
	
<script type="text/javascript">
		$(function(){//跟顺序有关！按照form里面显示顺序排
			$("#name").feikong();
			$("#actType").commonSelect();
			$("#purpose").feikong();
			$("#object").feikong();
			$("#leader").feikong();
			$("#contact").mobile();
			//$("#Text3").feikong();
			$("#budget").money();
			$("#htmlsave").htmlform();
			$("#ajaxsave").ajaxform();
			$("form").find("input[type!='radio'][type!='checkbox'][type!='button'][type!='submit'][type!='reset']").each(function(){
				$(this).addClass("form_item_input");
			});
		});
	</script>
    <title>申请活动</title>
  </head>
  <%//本页面id,label不要轻易修改
      request.setCharacterEncoding("utf-8");
      User user = (User)session.getAttribute("user");
   %>
  <body>
  <h1 class='title'>申请活动流程</h1>
  <div class='table'>
  <form action="ApplyActivity_add_2.jsp" method="post" name="form" id="testform">
  <table> 
  <tr><th width='458'><label class="form-item-title">活动名称</label></th>
  <td><input class='w280' type="text" name="name" id="name" valid='feikong'  required="true" /></td></tr>
   <tr><th><label class="form-item-title">活动类型</label></th><td><select class='w280' name="actType" id="actType" valid='commonSelect'  required="true"  />
  <%
       Collection<ActType> atps = ActTypeControl.getAllActTypes();
       Iterator<ActType> it = atps.iterator();
       while(it.hasNext()){
       ActType at =  it.next();
   %>
   <option value="<%=at.getId() %>"><%=at.getTypeName() %></option>
   <%} %>
  </select></td></tr>
   <tr>
  <th><label class="form-item-title">活动目的</label></th><td><input class='w280' type="text" name="purpose" id="purpose" valid='feikong'  required="true" /></td></tr>
  
  <tr><th><label class="form-item-title">面向对象</label></th><td><input class='w280' type="text" name="object" id="object" valid='feikong'  required="true" /></td></tr>
  <tr><th><label class="form-item-title">负责人</label></th><td><input class='w280' type="text" name="leader" id="leader" valid='feikong'  required="true" /></td></tr>
  <tr><th><label class="form-item-title">联系方式</label></th><td><input class='w280' type="text" name="contact" id="contact" valid='mobile'  required="true" /></td></tr>
  
  <tr><th><label class="form-item-title">举办时间</label></th>
  <td><input class='w280' type="text" name="holdTime" maxlength="100"  id="Text3"  onclick="SelectDate(this,'yyyy-MM-dd hh:mm')" readonly="true" style="cursor:pointer" /></td></tr>
  <tr><th><label class="form-item-title">经费</label></th><td><input class='w280' type="text" name="budget" id="budget" valid='money'  required="true" /></td>
  </tr>
  <tr><th><label class="form-item-title">备注</label></th><td><textarea class='w280' name="notes" /></textarea><input type="hidden" id="content1" ></td>
  </tr>
  <tr>
	<td colspan='2' align='center' height='40'><input type="button" id="htmlsave" value="添加活动流程" />&nbsp;&nbsp;&nbsp;&nbsp;
	<input type="reset" value="重置"/></td>
 </tr> 
</table>
</form>
</div>
</body>
</html>
